package cn.big.bigd.biocode.dao;

import cn.big.bigd.biocode.model.Release;
import cn.big.bigd.biocode.model.Tool;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *@Author wangfan
 *@Date 2017/12/4 12:59
 */


@Repository
public interface ReleaseDAO extends JpaRepository<Release, Integer> {
    Release  findByToolAndVersion(Tool tool, String v);
    List<Release>  findByToolOrderByCreatedAtDesc(Tool tool);
    long countByTool(Tool t);





}
